<template>
	<view class="">
		<view>
			<image src="https://sxdj.zhiyunapi.com/coach/show/image/co1.jpg" mode="widthFix" style="width: 100%;">
			</image>
		</view>
		<view class="p15 pt10 pb10">
		
			<u-swiper @click="toInfo" :list="bannerList" height="300" border-radius="10"></u-swiper>
		</view>
		<view>
			<image src="https://sxdj.zhiyunapi.com/coach/show/image/co2.jpg" mode="widthFix" style="width: 100%;">
			</image>
		</view>
		<view class="bg-white pt5 pb12">
			<u-tabs :current="current" :list="tabList" activeStyle="#ee2a2c" :is-scroll="false"
				@change="tabClick">></u-tabs>
			<view class="u-flex module-cate pl15 pr15 mt10">
				<view class="item mr10 fz13" @click="curIndex=index" :class="curIndex==index?'on':''"
					v-for="(item,index) in cateList" :key="index">{{item}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
	
		data() {
			return {
				
					
					bannerList: ['https://sxdj.zhiyunapi.com/coach/show/image/banner1.jpg',
						'https://sxdj.zhiyunapi.com/coach/show/image/banner2.jpg'
					],
					current: 0,
					curIndex: 0,
					tabList: [{
						name: '0敏圈',
					}, {
						name: '0专家说',
					}],
					cateList: ['最新', '最热', '精选', '关注'],
			}
		},
		onLoad(e) {},
		onShow() {},
		methods: {
			
				toPage(url){
					uni.navigateTo({
						url
					})
				}
		}
	}
</script>
<style lang="scss">
	.module-cate {
		.item {
			border-radius: 50rpx;
			border: 1px solid #666;
			color: #222;
			padding: 4rpx 15rpx;

			&.on {
				border: 1px solid #ee2a2c;
				color: #ee2a2c;
			}
		}
	}
</style>